// mircoApp/competitionApply/comm/studentItem/studentItem.js
Component({

  /**
   * 组件的属性列表
   */
  options: {
    addGlobalClass: true,
  },
  properties: {
    itemObj:{
      type:Object,
      value:{}
    },
    coThemeColor:{
      type:String,
      value:'241, 83, 83'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    studentDel(event) {
      console.log(event);
      let {item} = event.currentTarget.dataset;
      this.triggerEvent('studentDel', {id:item.id})
    },
    studentTo() {
      wx.navigateTo({
        url:`/mircoApp/competitionApply/actionStudent/actionStudent?id=${this.data.itemObj.id}`
      })
    }
  }
})